import {Highlighter} from '../misc/util.js';
import {Spinner} from './animation.js';
+import {logErrorUnlessCancelled} from '../misc/errorUtils.js';
const SEARCH_PROVIDERS_SCHEMA = 'org.gnome.desktop.search-providers';
resultId => this._addItem(this._resultDisplays[resultId]));
this._setMoreCount(this.provider.canLaunchSearch ? moreCount : 0);
this.show();
- } catch {
+ } catch (e) {
+ logErrorUnlessCancelled(e);
this._clearResultDisplay();
}
}
const laters = global.compositor.get_laters();
this._updateSearchLater = laters.add(Meta.LaterType.BEFORE_REDRAW, () => {
delete this._updateSearchLater;
- super.updateSearch(...args);
+ super.updateSearch(...args).catch(logErrorUnlessCancelled);
return GLib.SOURCE_REMOVE;
});
});
this._providers.forEach(provider => {
const previousProviderResults = previousResults[provider.id];
- this._doProviderSearch(provider, previousProviderResults);
+ this._doProviderSearch(provider, previousProviderResults).catch(
+ logErrorUnlessCancelled);
});
this._updateSearchProgress();